package com.rdxer.api;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("/test")
public class TestApi {

    @GetMapping("/1")
    String test1(){
        return "1";
    }


    @RestController
    @CrossOrigin
    @RequestMapping("/test2")
    public class Test2Api {

        @GetMapping("/1")
        String test1(){
            return "2";
        }

    }
    @RestController
    @CrossOrigin
    @RequestMapping("/test3")
    public class Test3Api {

        @GetMapping("/1")
        String test1(){
            return "3";
        }

    }


}
